<!--  <div class="customers index">
    <h2><?php echo __('Customers'); ?></h2>
    <table cellpadding="0" cellspacing="0">
    <thead>
    <tr>
            <th><?php echo $this->Paginator->sort('id'); ?></th>
            <th><?php echo $this->Paginator->sort('name'); ?></th>
            <th><?php echo $this->Paginator->sort('email'); ?></th>
            <th><?php echo $this->Paginator->sort('group_id'); ?></th>
            <th><?php echo $this->Paginator->sort('created'); ?></th>
            <th><?php echo $this->Paginator->sort('modifired'); ?></th>
            <th class="actions"><?php echo __('Actions'); ?></th>
    </tr>
    </thead>
    <tbody>
    <?php foreach ($customers as $customer): ?>
    <tr>
        <td><?php echo h($customer['Customer']['id']); ?>&nbsp;</td>
        <td><?php echo h($customer['Customer']['name']); ?>&nbsp;</td>
        <td><?php echo h($customer['Customer']['email']); ?>&nbsp;</td>
        <td>
            <?php echo $this->Html->link($customer['Group']['name'], array('controller' => 'groups', 'action' => 'view', $customer['Group']['id'])); ?>
        </td>
        <td><?php echo h($customer['Customer']['created']); ?>&nbsp;</td>
        <td><?php echo h($customer['Customer']['modifired']); ?>&nbsp;</td>
        <td class="actions">
            <?php echo $this->Html->link(__('View'), array('action' => 'view', $customer['Customer']['id'])); ?>
            <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $customer['Customer']['id'])); ?>
            <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $customer['Customer']['id']), array(), __('Are you sure you want to delete # %s?', $customer['Customer']['id'])); ?>
        </td>
    </tr>
<?php endforeach; ?>
    </tbody>
    </table>
    <p>
    <?php
    echo $this->Paginator->counter(array(
    'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
    ));
    ?>    </p>
    <div class="paging">
    <?php
        echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
        echo $this->Paginator->numbers(array('separator' => ''));
        echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
    ?>
    </div>
</div>
<div class="actions">
    <h3><?php echo __('Actions'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('New Customer'), array('action' => 'add')); ?></li>
        <li><?php echo $this->Html->link(__('List Groups'), array('controller' => 'groups', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Group'), array('controller' => 'groups', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Emails'), array('controller' => 'emails', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Email'), array('controller' => 'emails', 'action' => 'add')); ?> </li>
    </ul>
</div>  -->
<section id="content">
	<section class="main padder">
		<div class="row">
            <div class="col-lg-12">
                <section class="panel">
                    <header class="panel-heading">List customers </header>
                    <div class="panel-body">
                        <div class="row text-small">
                            <div class="col-sm-4 m-b-mini">
                                <select class="input-sm inline form-control" style="width: 130px">
                                    <option value="0">Bulk action</option>
                                    <option value="1">Delete selected</option>
                                    <option value="2">Bulk edit</option>
                                    <option value="3">Export</option>
                                </select>
                                <button class="btn btn-sm btn-white">Apply</button>
                            </div>
                            <div class="col-sm-4 m-b-mini">
                                <div class="btn-group" data-toggle="buttons">
                                    <label class="btn btn-sm btn-white active">
                                        <input type="radio" name="options" id="option1">
                                        Day </label>
                                    <label class="btn btn-sm btn-white">
                                        <input type="radio" name="options" id="option2">
                                        Week </label>
                                    <label class="btn btn-sm btn-white">
                                        <input type="radio" name="options" id="option2">
                                        Month </label>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="input-group">
                                    <input type="text" class="input-sm form-control" placeholder="Search">
                                    <span class="input-group-btn">
                                        <button class="btn btn-sm btn-white" type="button">Go!</button>
                                    </span></div>
                            </div>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped b-t text-small">
                            <thead>
                                <tr>
                                    <th width="20">
                                        <input type="checkbox"></th>
                                    <!-- <th class="th-sortable" data-toggle="class">
                                    
                                    <span class="th-sort"><i class="fa fa-sort-down text"></i><i class="fa fa-sort-up text-active"></i><i class="fa fa-sort"></i></span>
                                                                      
                                    </th> -->
                                    <th>
                                    <?php echo $this->Paginator->sort('name'); ?>

                                    </th>
                                    <th> 
                                    <?php echo $this->Paginator->sort('email'); ?>
                                    </th>
                                    <th><?php echo $this->Paginator->sort('group_id'); ?></th>

                                </tr>
                            </thead>
                            <tbody>
                            	<?php foreach ($customers as $customer): ?>	
                                <tr>
                                    <td>
                                        <input type="checkbox" name="post[]" value="<?php echo h($customer['Customer']['id']); ?>">
                                    </td>
                                    <td>
                                    	<?php echo h($customer['Customer']['name']); ?>
                                    </td>
                                    <td><?php echo h($customer['Customer']['email']); ?></td>
                                    <td>
                                        <a href="#modal" data-toggle="modal" name="<?php echo $customer['Group']['id'];?>">
                                           
                                        </a>
										<?php echo $this->Html->link($customer['Group']['name'], array('controller' => 'groups', 'action' => 'view', $customer['Group']['id'])); ?>
                                    </td>
                                    <td></td>
                                </tr>
                                <?php endforeach; ?>
                               
                            </tbody>
                        </table>
                    </div>
                    <footer class="panel-footer">
                        <div class="row">
                            <div class="col-sm-4 hidden-xs">
                               
                            </div>
                            <div class="col-sm-3 text-center"><small class="text-muted inline m-t-small m-b-small">showing 20-30 of 50 items</small> </div>
                            <div class="col-sm-5 text-right text-center-sm">
  
								<ul class="pagination pagination-small m-t-none m-b-none">
								<?php
									echo $this->Paginator->prev(__('prev'), array('tag' => 'li'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a'));
									echo $this->Paginator->numbers(array('separator' => '','tag' => 'li', 'currentTag' => 'a', 'currentClass' => 'active')); 
									echo $this->Paginator->next(__('next'), array('tag' => 'li','currentClass' => 'disabled'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a'));
								?>
								</ul>
                            </div>
                        </div>
                    </footer>
                </section>
            </div>
                
        </div>

	</section>
</section>